package com.jumi.microservice.dto.logistics;

import com.jumi.microservice.common.base.dto.BaseRequest;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * @author by mazhao
 * @Classname LogisticsPackage
 * @Description TODO
 * @Date 2020/8/6 9:52
 */
public class LogisticsPackage extends BaseRequest {

    private List<GoodsEntity> list = new ArrayList<>();


    private String logisticsNo;

    /**
     * 是否单独发货
     */
    private Byte isAlone = 0;

    /**
     * 发货仓
     */
    private Integer warehouse;

    /**
     * 商品标签
     */
    private Integer goodsLabel;

    /**
     * 包裹类型（0原始包裹，1拆分包裹，2合并包裹）
     */
    private Byte spiltMergeStatus = 0;
    /**
     *
     */
    private String receiverName;
    /**
     *
     */
    private String receiverPhone;

    /**
     *
     */
    private String receiverAddress;

    /**
     *
     */
    private Byte selfFlag = 1;

    /**
     * 物流状态
     */
    private Byte logisticsStatus = 0;

    private Byte isGroup;

    public Byte getIsGroup() {
        return isGroup;
    }

    public void setIsGroup(Byte isGroup) {
        this.isGroup = isGroup;
    }

    public Byte getLogisticsStatus() {
        return logisticsStatus;
    }

    public void setLogisticsStatus(Byte logisticsStatus) {
        this.logisticsStatus = logisticsStatus;
    }

    public String getReceiverName() {
        return receiverName;
    }

    public void setReceiverName(String receiverName) {
        this.receiverName = receiverName;
    }

    public void add(GoodsEntity goodsEntity){
        this.list.add(goodsEntity);
    }


    public Byte getSelfFlag() {
        return selfFlag;
    }

    public void setSelfFlag(Byte selfFlag) {
        this.selfFlag = selfFlag;
    }

    public String getLogisticsNo() {
        return logisticsNo;
    }

    public void setLogisticsNo(String logisticsNo) {
        this.logisticsNo = logisticsNo;
    }

    public String getReceiverPhone() {
        return receiverPhone;
    }

    public void setReceiverPhone(String receiverPhone) {
        this.receiverPhone = receiverPhone;
    }

    public String getReceiverAddress() {
        return receiverAddress;
    }

    public void setReceiverAddress(String receiverAddress) {
        this.receiverAddress = receiverAddress;
    }

    public Byte getSpiltMergeStatus() {
        return spiltMergeStatus;
    }

    public void setSpiltMergeStatus(Byte spiltMergeStatus) {
        this.spiltMergeStatus = spiltMergeStatus;
    }

    public Integer getGoodsLabel() {
        return goodsLabel;
    }

    public void setGoodsLabel(Integer goodsLabel) {
        this.goodsLabel = goodsLabel;
    }

    public Integer getWarehouse() {
        return warehouse;
    }

    public void setWarehouse(Integer warehouse) {
        this.warehouse = warehouse;
    }

    public Byte getIsAlone() {
        return isAlone;
    }

    public void setIsAlone(Byte isAlone) {
        this.isAlone = isAlone;
    }

    public List<GoodsEntity> getList() {
        return list;
    }

    public void setList(List<GoodsEntity> list) {
        this.list = list;
    }

    @Override
    public void checkRequest() {

    }

    @Override
    public String toString() {
        return "LogisticsPackage{" +
                "list=" + list +
                ", logisticsNo='" + logisticsNo + '\'' +
                ", isAlone=" + isAlone +
                ", warehouse=" + warehouse +
                ", goodsLabel=" + goodsLabel +
                ", spiltMergeStatus=" + spiltMergeStatus +
                ", receiverName='" + receiverName + '\'' +
                ", receiverPhone='" + receiverPhone + '\'' +
                ", receiverAddress='" + receiverAddress + '\'' +
                ", selfFlag=" + selfFlag +
                ", logisticsStatus=" + logisticsStatus +
                '}';
    }
}
